package com.vincce.sport.mapper;

import java.util.List;
import java.util.Map;

import com.vincce.sport.core.MyBatisRepository;
import com.vincce.sport.entity.Advert;
import com.vincce.sport.entity.DateView;
import com.vincce.sport.entity.PlayerDateByBackboard;
import com.vincce.sport.entity.PlayerDateByHit;
import com.vincce.sport.entity.PlayerDateByTotalScore;
@MyBatisRepository
public interface DateViewMapper {	
	/**
	 * 场均得分
	 * @return
	 */
	public List<DateView> queryPlayerDateByTotalScore(Long seasonId);
	/**
	 * 场均篮板排名
	 * @return
	 */
	public List<DateView> queryPlayerDateByBackboard(Long seasonId);
	/**
	 * 场均助攻排名
	 * @return
	 */
	public List<DateView> queryPlayerDateByAssistsAsts(Long seasonId);
	/**
	 * 场均篮板排名-球队
	 * @return
	 */
	public List<DateView> queryTeamDateByBackboard(Long seasonId);
	/**
	 * 场均得分排名-球队
	 * @return
	 */
	public List<DateView> queryTeamDateByTotalScore(Long seasonId);
	/**
	 * 命中率排名-球队
	 * @return
	 */
	public List<DateView> queryTeamDateByHit(Long seasonId);
	
	/**
	 * 通过赛季id和类型删除
	 * @param map
	 * @return
	 */
	public Integer deleteByType(Map<String, Object> map);
	
	/**
	 * 添加
	 * @param dateView
	 * @return
	 */
	public Long insertDateView(DateView dateView);
	
	/**
	 * 查询当前赛季所有
	 * @param seasonId
	 * @return
	 */
	public List<DateView> queryDateView(Long seasonId);
	
	/**
	 * 场均助攻排名
	 * @param seasonId
	 * @return
	 */
	public List<DateView> queryTeamDataAssists(Long seasonId );
	/**
	 * 查询当前赛季篮板
	 * @param seasonId
	 * @return
	 */
	public List<PlayerDateByBackboard> queryPlayerDateByBackboardPage(Map<String,Object> map);
	
	/**
	 * 查询当前赛季命中率
	 * @param seasonId
	 * @return
	 */
	public List<PlayerDateByHit> queryPlayerDateByHitPage(Map<String,Object> map);
	/**
	 * 查询当前赛季个人场均得分
	 * @return
	 */
	public List<PlayerDateByTotalScore> queryPlayerDateByTotalScorePage(Map<String,Object> map);
}
